<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix'        => 'admin/DecoCompany',
    'namespace'     => 'Beerus\\Modules\\DecoCompany\\Controllers',
    'middleware'    => [
        'web',
        'admin',
    ],
], function (Router $router) {
    // 列表
    $router->get('/companies', 'IndexController@index')->name('company.list');
	$router->get('/companies/{id}', 'IndexController@detail');
    $router->get('/companies/{id}/edit', 'IndexController@edit');
	$router->get('/companies/{id}/{tab_id}', 'IndexController@detail');
	$router->post('/certificate/save', 'IndexController@certificateSave');
	$router->put('/companies/{id}', 'IndexController@show');
	$router->post('/companies/saveBasic', 'IndexController@saveBasic');
	$router->post('/companies/gridEdit', 'IndexController@gridEdit');
    $router->post('/companies/scoreEdit', 'IndexController@scoreEdit');
    // 认证
    $router->get('/auth', 'AuthController@index')->name('auth.list');;
    $router->get('/auth/{id}/{tab}', 'AuthController@edit');
    $router->post('/auth/save', 'AuthController@save');
    $router->get('/cities', 'AuthController@cities');
	$router->post('/auth/saveServiceInfo', 'AuthController@saveServiceInfo');
    // 订单
    $router->get('/order', 'OrderController@index')->name('order.list');
    $router->get('/order/create', 'OrderController@edit');
    $router->get('/order/{id}/edit', 'OrderController@edit');
    $router->post('/order/save', 'OrderController@save');
	$router->get('/order/export', 'OrderController@export');
    // 装修方式配置
    $router->get('/decoMode', 'DecoModeController@index');
    $router->get('/decoMode/create', 'DecoModeController@edit');
    $router->get('/decoMode/{id}/edit', 'DecoModeController@edit');
    $router->post('/decoMode/save', 'DecoModeController@editSubmit');
    $router->delete('/decoMode/{id}', 'DecoModeController@delete');
    // 装修房屋范围配置
    $router->get('/decoHouseScope', 'DecoHouseScopeController@index');
    $router->get('/decoHouseScope/create', 'DecoHouseScopeController@edit');
    $router->get('/decoHouseScope/{id}/edit', 'DecoHouseScopeController@edit');
    $router->post('/decoHouseScope/save', 'DecoHouseScopeController@editSubmit');
    $router->delete('/decoHouseScope/{id}', 'DecoHouseScopeController@delete');
    // 装修服务标签配置
    $router->get('/decoServiceTag', 'DecoServiceTagController@index');
    $router->get('/decoServiceTag/create', 'DecoServiceTagController@edit');
    $router->get('/decoServiceTag/{id}/edit', 'DecoServiceTagController@edit');
    $router->post('/decoServiceTag/save', 'DecoServiceTagController@editSubmit');
    $router->delete('/decoServiceTag/{id}', 'DecoServiceTagController@delete');
    // 评价
    $router->get('/evaluation', 'EvaluationController@index');// 评价列表
    $router->post('/evaluation/check', 'EvaluationController@check');// 审核
    $router->delete('/evaluation/{id}', 'EvaluationController@del');// 删除评价
    $router->get('/evaluation/{id}/edit', 'EvaluationController@edit');// 审核页
    $router->get('/evaluationReply', 'EvaluationReplyController@index');// 回复列表
    $router->delete('/evaluationReply/{id}', 'EvaluationController@del');// 删除回复
    //套餐管理
    $router->get('/combo/list', 'ComboController@list');
    $router->get('/combo/check/{id}', 'ComboController@check');
    $router->post('/combo/submit', 'ComboController@submit');
    //常见问题
    $router->get('/issue/list', 'IssueController@list');
    $router->get('/issue/list/create', 'IssueController@create');
    $router->get('/issue/list/{id}/edit', 'IssueController@create');
    $router->post('/issue/save', 'IssueController@save');
    $router->get('/issue/all_issue', 'IssueController@all_issue');
    //效果图列表
    $router->get('/effect', 'EffectController@index');
    //快速提问列表
    $router->get('/quickQuestion','QuickQuestionController@index');
    $router->get('/quickQuestion/create', 'QuickQuestionController@edit');
    $router->get('/quickQuestion/{id}/edit', 'QuickQuestionController@edit');
    $router->post('/quickQuestion/save', 'QuickQuestionController@editSubmit');
    $router->delete('/quickQuestion/{id}', 'QuickQuestionController@delete');
    //服务流程审核
    $router->get('/decoService/list', 'DecoServiceController@list');
    //装修公司集团号
    $router->delete('/companies/del_group', 'IndexController@delGroup');
});
